Optimal. Leaf size=16 \[ a x-\frac {b \sin (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 16, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.067, Rules used = {3016, 2637} \[ a x-\frac {b \sin (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2637
Rule 3016
Rubi steps
\begin {align*} \int \frac {a^2-b^2 \cos ^2(c+d x)}{a+b \cos (c+d x)} \, dx &=-\int (-a+b \cos (c+d x)) \, dx\\ &=a x-b \int \cos (c+d x) \, dx\\ &=a x-\frac {b \sin (c+d x)}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 28, normalized size = 1.75 \[ a x-\frac {b \sin (c) \cos (d x)}{d}-\frac {b \cos (c) \sin (d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.57, size = 18, normalized size = 1.12 \[ \frac {a d x - b \sin \left (d x + c\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.39, size = 39, normalized size = 2.44 \[ \frac {{\left (d x + c\right )} a - \frac {2 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.14, size = 22, normalized size = 1.38 \[ \frac {-b \sin \left (d x +c \right )+a \left (d x +c \right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.46, size = 19, normalized size = 1.19 \[ -\frac {b\,\sin \left (c+d\,x\right )-a\,d\,x}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.68, size = 32, normalized size = 2.00 \[ \begin {cases} a x - \frac {b \sin {\left (c + d x \right )}}{d} & \text {for}\: d \neq 0 \\\frac {x \left (a^{2} - b^{2} \cos ^{2}{\relax (c )}\right )}{a + b \cos {\relax (c )}} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________